﻿@{
    Layout = null;
}
<script src="~/Scripts/jquery-3.4.1.min.js"></script>
<link href="~/Content/bootstrap.css" rel="stylesheet" />
<link href="~/layer/skin/layer.css" rel="stylesheet" />
<script src="~/layui/layui.js"></script>

<h3 style="text-align:center">查看物资入库</h3>
<table style="text-align:center" class="table table-bordered">
    <tr>
        <td>物资编号：<label id="id" /></td>
    </tr>
    <tr>
        <td>物资名称：<label id="name" /></td>
    </tr>
    <tr>
        <td>物资材料：<label id="material" /></td>
    </tr>
    <tr>
        <td>物资规格：<label id="specifications" /></td>
    </tr>
    <tr>
        <td>物资产地：<label id="origin" /></td>
    </tr>
    <tr>
        <td>物资数量：<label id="num" /></td>
    </tr>
    <tr>
        <td>物资价格：<label id="price" /></td>
    </tr>
    <tr>
        <td>支付方式：<label id="paymentMethod" /></td>
    </tr>
</table>
<script>
    $(function () {
        $.ajax({
            url: "/Entrepot/GetAsyncc?id=" + @ViewBag.id,
            type: "get",
            dataType: "json",
            success: function (obj) {
                console.info(obj.date)
                $("#id").html(obj.id)
                $("#name").html(obj.name)
                $("#specifications").html(obj.specifications)
                $("#material").html(obj.material)
                $("#origin").html(obj.origin)
                $("#num").html(obj.num)
                $("#price").html(obj.price)
                $("#paymentMethod").html(obj.paymentMethod)
            }
        })
    })
</script>
